package dto;

import implementor.SellImp;
import implementor.SellerInfoImp;

import java.sql.Date;

import daoInterface.SellDao;

public class Bill
{
private int autoBillId;
private Date billDate;
private int customerId;
private int balancePaymentId;

// model attributes
private Sell[]modelbillrow;

public Bill()
{
}
public Bill(int autoBillId,Date billDate,int customerId, int balancePaymentId)
{
	this.balancePaymentId=balancePaymentId;
this.autoBillId=autoBillId;
this.billDate=billDate;
this.customerId=customerId;
}

public  Sell[] getBillrow()
{
	return this.modelbillrow;
}

public void setBillRowfromdb()
{
	SellDao sell= new SellImp();
	try {
		modelbillrow = sell.retrieveArray("billId",autoBillId+"");
	} catch (Exception e) {
		// TODO Auto-generated catch block
		e.printStackTrace();
	}
}

/************************************************************/

public void setautoBillId(int autoBillId)
{
this.autoBillId=autoBillId;
}


public int getBalancePaymentId() {
	return balancePaymentId;
}
public void setBalancePaymentId(int balancePaymentId) {
	this.balancePaymentId = balancePaymentId;
}
public int getautoBillId()
{
return autoBillId;
}

/************************************************************/
public void setbillDate(Date billDate)
{
this.billDate=billDate;
}


public Date getbillDate()
{
return billDate;
}

/************************************************************/
public void setcustomerId(int customerId)
{
this.customerId=customerId;
}


public int getcustomerId()
{
return customerId;
}
}
